$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 2vw;

  .main{
    overflow: hidden;
  }

  .bg_shape {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    height: 50vh;

    img {
      width: 100%;
      object-fit: contain;
    }
  }

  .section1 {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .title {
      position: relative;
      display: inline-block;

      img {
        width: 540/$f+vw;
      }

      p {
        position: absolute;
        color: #FFF;
        font-size: $fontSize_64;
        font-weight: bold;
        right: 40%;
        top: 25%;
        text-transform: uppercase;
      }
    }

    .rpic {
      position: relative;

      .pic1 {
        img {
          width: 310/$f+vw;
        }
      }

      .pic2 {
        position: absolute;
        right: 0;
        top: 30%;

        img {
          width: 150/$f+vw;
        }
      }
    }
  }

  .section2 {
    padding: 0 8vw;
    position: relative;

    .recommend {
      width: 100%;
      display: flex;
      justify-content: space-between;
      margin-top: -4vw;
      a {
        display: block;
        width: 48%;
        display: flex;
        justify-content: space-between;
        gap: 3%;

        .pic {
          width: 65%;
          overflow: hidden;
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }

        .info {
          width: 35%;
          position: relative;
          .tag {
            border-radius: 3px;
            border: 1px solid #000;
            font-size: 12px;
            width: fit-content;
            padding: 5px 10px;
            color: #000;
          }
          .i2{
            position: absolute;
            left: 0;
            bottom:0;
            width: 100%;
            .time{
              color: #000;
              font-size: 12/$f+vw;
            }
            .des{
              color: #000;
              line-height: 1.6;
              font-size: $fontSize_16;
              margin: 1vw 0;
              transition: all 600ms;
            }
            .btn{
              display: flex;
              justify-content: flex-end;
              align-items: center;
              position: relative;
              padding-bottom: 15px;
              .more{
                 padding: 5px 8px 6px 22px;
                background-color: #000;
                border-radius: 3px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: all 600ms;
                svg{
                  display: block;
                }
              }
              &::after{
                content:'';
                display: block;
                position: absolute;
                left: 0;
                bottom:0;
                width: 100%;
                height: 2px;
                background: rgba(0, 0, 0, 0.10);
                transition: all 600ms;
              }
            }
          }
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
          .info{
            .des{
              color: #FF8080;
            }
            .btn{
              .more{
                background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
                padding: 5px 8px 6px 8px;
              }
              &::after{
                background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
              }
            }
          }
        }
      }
    }

    .types {
      display: flex;
      justify-content: flex-end;
      margin: 4vw 0 3vw 0;
      a {
        border: 1px solid #DDD;
        font-size: $fontSize_16;
        font-weight: 600;
        color: #111;
        padding: 0.6vw 4vw 0.6vw 1vw;
        display: flex;
        align-items: center;
        &::before {
          content: '';
          display: block;
          width: 12px;
          height: 3px;
          background: #FF8080;
          margin-right: 8px;
          transition: all 600ms;
          opacity: 0;
          transform: translateX(-10px);
        }

        p {
          transform: translateX(-22px);
          transition: all 600ms;
          font-family: 'Montserrat-Light';
        }

        &:hover {
          color: #FF8080;

          &::before {
            opacity: 1;
            transform: translateX(0);
          }

          p {
            transform: translateX(0);
          }
        }
      }

      .active {
        color: #FF8080;

        &::before {
          opacity: 1;
          transform: translateX(0);
        }

        p {
          transform: translateX(0);
        }
      }
    }

    .list{
      display: flex;
      flex-wrap: wrap;
      width: 105.2%;
      margin-left: -2.6%;
      a{
        width: 30%;
        margin-left: 2.6%;
        margin-bottom: 2vw;
        .pic{
          overflow: hidden;
          img{
            width: 100%;
            display: block;
            object-fit: cover;
            transition: all 600ms;
          }
        }
        .text{
          margin: 1.5vw 0;
          .d1{
            display: flex;
            justify-content: space-between;
            align-items: center;
            .tag {
              border-radius: 3px;
              border: 1px solid #000;
              font-size: 12px;
              width: fit-content;
              padding: 5px 10px;
              color: #000;
              transition: all 600ms;
            }
            .time{
              color: #000;
              font-size: 12/$f+vw;
            }
          }
          .d2{
            color: #000;
            line-height: 1.6;
            font-size: $fontSize_16;
            margin: 1vw 0;
            transition: all 600ms;
            height: 3vw;
            word-break: break-all;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
          }
          .btn{
            display: flex;
            justify-content: flex-end;
            align-items: center;
            position: relative;
            padding-bottom: 15px;
            .more{
               padding: 5px 8px 6px 22px;
              background-color: #000;
              border-radius: 3px;
              display: flex;
              align-items: center;
              justify-content: center;
              transition: all 600ms;
              svg{
                display: block;
              }
            }
            &::after{
              content:'';
              display: block;
              position: absolute;
              left: 0;
              bottom:0;
              width: 100%;
              height: 2px;
              background: rgba(0, 0, 0, 0.10);
              transition: all 600ms;
            }
          }
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
          .text{
            .d1{
              .tag{
                background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
                color:white;
                border-color: #fff;
              }
            }
            .d2{
              color: #FF8080;
            }
            .btn{
              .more{
                background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
                padding: 5px 8px 6px 8px;
              }
              &::after{
                background: linear-gradient(90deg, #E6014D 0%, #F59F00 100%);
              }
            }
          }
        }
      }
    }

    .pager {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 3vw;
      a {
        svg {
          display: block;
        }
      }

      .nums {
        display: flex;
        align-items: center;
        margin: 0 1vw;

        a {
          padding: 0 5px;
          color: rgba(139, 139, 139, 1);
          font-size: $fontSize_22;
          margin: 0 8px;

          &:hover {
            border-bottom: 2px solid rgba(224, 28, 28, 1);
            color: rgba(224, 28, 28, 1);
            font-weight: bold;
          }
        }

        .active {
          border-bottom: 2px solid rgba(224, 28, 28, 1);
          color: rgba(224, 28, 28, 1);
          font-weight: bold;
        }
      }
    }
  }

  .section3{
    width: 50vw;
    margin: 4vw auto;
    .d1{
      display: flex;
      align-items: center;
      justify-content: space-between;
      .p1{
        color: #000;
        font-size: $fontSize_70;
        font-weight: bold;
      }
      a{
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        padding: 1.4vw 3vw;
        p{
          color:white;
          font-size: $fontSize_18;
        }
        svg{
          margin-left: 10px;
          display: block;
          transition: all 600ms;
        }
        &:hover{
          svg{
            transform: translateX(10px);
          }
        }
      }
    }
    .d2{
      color: #000;
      font-size: $fontSize_32;
      width: 60%;
      font-weight: bold;
      margin-top: 2vw;
      line-height: 1.8;
    }
  }
  

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      .title{
        img{
          width: 140px;
        }
        p{
          font-size: 18px;
          right: 35%;
          top: 22%;
        }
      }
    }
    .section2{
      padding: 0 5%;
      .recommend{
        margin-top: 0;
        flex-direction: column;
        a{
          width: 100%;
          flex-direction: column;
          margin-bottom: 20px;
          .pic{
            width: 100%;
          }
          .info{
            width: 100%;
            margin-top: 15px;
            .i2{
              position: static;
              margin-top: 10px;
              .time{
                font-size: 14px;
              }
              .des{
                font-size: 16px;
              }
            }
          }
        }
      }
      .types{
        margin:0 0 20px 0;
        a{
          font-size: 14px;
          padding: 5px 10px;
        }
      }
      .list{
        width: 100%;
        margin-left: 0;
        a{
          width: 100%;
          margin-left: 0;
          margin-bottom: 20px;
          .text{
            margin: 15px 0 0 0;
            .d1{
              .time{
                font-size: 14px;
              }
            }
            .d2{
              font-size: 16px;
              height: auto;
              margin: 10px 0;
            }
          }
        }
      }
      .pager{
        margin-bottom: 30px;
        .nums{
          margin: 0 10px;
          a{
            font-size: 16px;
          }
        }
      }
    }
    .section3{
      width: 90%;
      margin: 40px auto;
      .d1{
        .p1{
          font-size: 24px;
        }
        a{
          padding: 10px 20px;
          p{
            font-size: 16px;
          }
        }
      }
      .d2{
        font-size: 16px;
        width: 80%;
        margin-top: 20px;
      }
    }
  }
}